package cn.tedu.charging.device.repository;

import cn.tedu.charging.common.pojo.po.ChargingGunInfoPO;
import cn.tedu.charging.device.mapper.GunMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class GunRepository {
    @Autowired
    private GunMapper gunMapper;

    public List<ChargingGunInfoPO> getGunsByStationId(Integer stationId) {
        return gunMapper.getGunsByStationId(stationId);
    }
}
